<table id="addTable" class="input">
  <input type="hidden" class="companyId" value="${(company.id)!""}">
  <input type="hidden" class="parentId" value="${parentId!""}">
  <tr>
    <td>名称:<input type="text" class="text addName" value=""/></td>
    <td>代码:<input type="text" class="text addCode" value=""/></td>
    <td>排序:<input type="text" class="text addOrderNum" value=""/></td>
    <td><input type="button" class="saveAdd" value="添加"/></td>
    <td><label class="errMsg"></label></td>
  </tr>
</table>
<table id="departSubList" class="list">
  <tr>
    <th style="width: 10%;">操作</th>
    <th style="width: 20%;">代码</th>
    <th style="width: 20%;">名称</th>
    <th style="width: 10%;">排序</th>
    <th style="width: 20%;">创建时间</th>
    <th style="width: 20%;">修改时间</th>
  </tr>
  <#list deptList as subDept>
    <tr>
      <td style="text-align: center;">
        <a href="javascript:void(0);" class="edit" dataId="${subDept.id}">编辑</a>
        <a href="javascript:void(0);" class="saveEdit hide" dataId="${subDept.id}">保存</a>
        <a href="javascript:void(0);" class="cancelEdit hide" dataId="${subDept.id}">取消</a>
        <a href="javascript:void(0);" class="delete" dataId="${subDept.id}">删除</a>
      </td>
      <td>
        <label class="code">${subDept.code}</label>
        <input type="text" class="text editCode hide" value="" />
      </td>
      <td>
        <label class="name">${subDept.name}</label>
        <input type="text" class="text editName hide" value="" />
      </td>
      <td>
        <label class="orderNum">${subDept.orderNum!""}</label>
        <input type="text" class="text editOrderNum hide" value="" />
      </td>
      <td>
        <label class="createDate">${(subDept.createDate? string('yyyy-MM-dd HH:mm:ss'))!""}</label>
      </td>
      <td>
        <label class="modifyDate">${(subDept.modifyDate? string('yyyy-MM-dd HH:mm:ss'))!""}</label>
      </td>
    </tr>
  </#list>
</table>